let t = require;
let  e = module
let  o =  e.exports;
 o.default =  e.exports;

                'use strict';
                console.log("start");
                var _n97,
                    i =
                    (this && this.__extends) ||
                    ((_n97 = function n(t, e) {
                            return (_n97 =
                                Object.setPrototypeOf ||
                                ({
                                        __proto__: []
                                    }
                                    instanceof Array &&
                                    function(t, e) {
                                        t.__proto__ = e;
                                    }) ||
                                function(t, e) {
                                    for (var o in e) {
                                        Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
                                    }
                                })(t, e);
                        }),
                        function(t, e) {
                            function o() {
                                this.constructor = t;
                            }
                            _n97(t, e),
                                (t.prototype =
                                    null === e ?
                                    Object.create(e) :
                                    ((o.prototype = e.prototype), new o()));
                        }),
                    r =
                    (this && this.__decorate) ||
                    function(t, e, o, n) {
                        var i,
                            r = arguments.length,
                            a =
                            r < 3 ?
                            e :
                            null === n ?
                            (n = Object.getOwnPropertyDescriptor(e, o)) :
                            n;
                        if (
                            'object' ==
                            (typeof Reflect === 'undefined' ?
                                'undefined' :
                                typeof(Reflect)) &&
                            'function' == typeof Reflect.decorate
                        )
                            a = Reflect.decorate(t, e, o, n);
                        else
                            for (var s = t.length - 1; s >= 0; s--) {
                                (i = t[s]) &&
                                (a = (r < 3 ? i(a) : r > 3 ? i(e, o, a) : i(e, o)) || a);
                            }
                        return r > 3 && a && Object.defineProperty(e, o, a), a;
                    };
                Object.defineProperty(o, '__esModule', {
                        value: !0
                    }),
                    (o.Guide1 = void 0);
                var a = t('AbsGuideAction'),
                    s = t('BattlePanel'),
                    c = t('UIMrg'),
                    l = t('BattleMrg'),
                    u = t('ComUtils'),
                    h = t('MergeMrg'),
                    p = t('ChapterPanel'),
                    f = t('UmaSdkHelper'),
                    
                    d = cc._decorator,
                    g = d.ccclass,
                    _ =
                    (d.property,
                        (function(t) {
                            function e() {
                                var e = t.call(this) || this;
                                return (
                                    e.addStep(e.G1),
                                    e.addStep(e.G2),
                                    e.addStep(e.G3),
                                    e.addStep(e.G4),
                                    e.addStep(e.G5),
                                    e.addStep(e.G6),
                                    e.addStep(e.G7),
                                    e.addStep(e.G8),
                                    e.addStep(e.G9),
                                    e.addStep(e.G10),
                                    e.addStep(e.G11),
                                    e.addStep(e.G12),
                                    e.addStep(e.G13),
                                    e.addStep(e.G14),
                                    e
                                );
                            }
                            return (
                                i(e, t),
                                (e.prototype.G1 = function() {
                                    var t = c.UIMrg.getPanel(p.ChapterPanel);
                                    if (t && t.isShow) {
                                        var e = t.getBattleButton();
                                        e &&
                                            ((this._augmentHeight = 50),
                                                (this._augmentWidth = 50),
                                                this.setTarget(e.node));
                                    }
                                }),
                                (e.prototype.G2 = function() {
                                    var t = c.UIMrg.getPanel(s.BattlePanel);
                                    if (t && t.isShow && !this._initViewed) {
                                        (l.BattleMrg.ins.swapItem = 1),
                                        (l.BattleMrg.ins.eradicateItem = 1);
                                        var e = t.getBattleButton();
                                        (e.interactable = !1),
                                        (e.node.getChildByName('lock').active = !0),
                                        u.default.setGray(e.node, !0);
                                        var o = t.getRefreshButton();
                                        (o.interactable = !1),
                                        (o.node.getChildByName('lock').active = !0),
                                        u.default.setGray(o.node, !0);
                                        var n = t.getSwapButton();
                                        (n.interactable = !1),
                                        (n.node.getChildByName('lock').active = !0),
                                        u.default.setGray(n.node, !0);
                                        var i = t.getRemoveButton();
                                        (i.interactable = !1),
                                        (i.node.getChildByName('lock').active = !0),
                                        u.default.setGray(i.node, !0);
                                        var r = u.default.getComponent(
                                            cc.Button,
                                            t.view,
                                            'merge/desc/btnClose'
                                        );
                                        (r.interactable = !1),
                                        u.default.setGray(r.node, !0),
                                            (this.location.x = 0),
                                            (this.location.y = -200),
                                            (this._initViewed = !0),
                                            this.setTarget(null);
                                    }
                                }),
                                (e.prototype.G3 = function() {
                                    var t = c.UIMrg.getPanel(s.BattlePanel);
                                    if (t && t.isShow) {
                                        if (null == this.target || this.target == this) {
                                            (u.default.findNode('mergeGuideMask', t.view).active = !0),
                                            (this.location.x = 0),
                                            (this.location.y =
                                                949 - cc.Canvas.instance.node.height / 2);
                                            for (var e = 0; e < h.MergeMrg.grids.length; e++) {
                                                for (
                                                    var o = h.MergeMrg.grids[e], n = 0; n < o.length; n++
                                                ) {
                                                    var i = o[n];
                                                    (i.canOperate = 4 == e && 1 == n),
                                                    i.canOperate && null == this.to && this.setTo(i);
                                                }
                                            }
                                            this.setTarget(t.getItemCom(0).view);
                                        }
                                        this.to && null != this.to.data && this.next();
                                    }
                                }),
                                (e.prototype.G4 = function() {
                                    var t = c.UIMrg.getPanel(s.BattlePanel);
                                    if (t && t.isShow) {
                                        if (null == this.target || this.target == this) {
                                            (u.default.findNode('mergeGuideMask', t.view).active = !0),
                                            (this.location.x = 0),
                                            (this.location.y =
                                                949 - cc.Canvas.instance.node.height / 2);
                                            for (var e = 0; e < h.MergeMrg.grids.length; e++) {
                                                for (
                                                    var o = h.MergeMrg.grids[e], n = 0; n < o.length; n++
                                                ) {
                                                    var i = o[n];
                                                    (i.canOperate = 3 == e && 2 == n),
                                                    i.canOperate && null == this.to && this.setTo(i);
                                                }
                                            }
                                            this.setTarget(t.getItemCom(1).view);
                                        }
                                        this.to &&
                                            null != this.to.data &&
                                            ((this._delay = 2), this.next());
                                    }
                                }),
                                (e.prototype.G5 = function(t) {
                                    (this._delay -= t), this._delay <= 0 && this.next();
                                }),
                                (e.prototype.G6 = function() {
                                    var t = c.UIMrg.getPanel(s.BattlePanel);
                                    t &&
                                        t.isShow &&
                                        ((u.default.findNode('battleGuideMask', t.view).active = !0),
                                            (u.default.findNode('mergeGuideMask', t.view).active = !1),
                                            (this.location.x = 0),
                                            (this.location.y = -200),
                                            this.setTarget(null));
                                }),
                                (e.prototype.G7 = function() {
                                    var t = c.UIMrg.getPanel(s.BattlePanel);
                                    if (t && t.isShow) {
                                        if (null == this.target || this.target == this) {
                                            (u.default.findNode('battleGuideMask', t.view).active = !1),
                                            (u.default.findNode('mergeGuideMask', t.view).active = !0),
                                            (this.location.x = 0),
                                            (this.location.y =
                                                949 - cc.Canvas.instance.node.height / 2);
                                            for (var e = 0; e < h.MergeMrg.grids.length; e++) {
                                                for (
                                                    var o = h.MergeMrg.grids[e], n = 0; n < o.length; n++
                                                ) {
                                                    var i = o[n];
                                                    (i.canOperate = 4 == e && 3 == n),
                                                    i.canOperate && null == this.to && this.setTo(i);
                                                }
                                            }
                                            this.setTarget(t.getItemCom(2).view);
                                        }
                                        this.to &&
                                            null != this.to.data &&
                                            ((this._delay = 1.5), this.next());
                                    }
                                }),
                                (e.prototype.G8 = function(t) {
                                    (this._delay -= t), this._delay <= 0 && this.next();
                                }),
                                (e.prototype.G9 = function() {
                                    if (this.target == this) {
                                        var t = c.UIMrg.getPanel(s.BattlePanel);
                                        if (t && t.isShow) {
                                            var e = t.getRemoveButton();
                                            (e.interactable = !0),
                                            (e.node.getChildByName('lock').active = !1),
                                            u.default.setGray(e.node, !1),
                                                this.setTarget(e.node),
                                                (this.location.x = 200),
                                                (this.location.y = -20);
                                        }
                                    }
                                }),
                                (e.prototype.G10 = function() {
                                    if (this.target == this) {
                                        var t = c.UIMrg.getPanel(s.BattlePanel);
                                        t &&
                                            t.isShow &&
                                            this.setTarget(h.MergeMrg.grids[1][4].view);
                                    }
                                }),
                                (e.prototype.G11 = function() {
                                    if (this.target == this) {
                                        var t = c.UIMrg.getPanel(s.BattlePanel);
                                        if (t && t.isShow) {
                                            var e = t.getSwapButton();
                                            (e.interactable = !0),
                                            (e.node.getChildByName('lock').active = !1),
                                            u.default.setGray(e.node, !1),
                                                this.setTarget(e.node),
                                                (this.location.x = 0),
                                                (this.location.y =
                                                    949 - cc.Canvas.instance.node.height / 2 + 20);
                                        }
                                    }
                                }),
                                (e.prototype.G12 = function() {
                                    var t = c.UIMrg.getPanel(s.BattlePanel);
                                    if (t && t.isShow) {
                                        if (this.target == this) {
                                            (this.location.x = 0),
                                            (this.location.y =
                                                949 - cc.Canvas.instance.node.height / 2 + 10);
                                            for (var e = 0; e < h.MergeMrg.grids.length; e++) {
                                                for (
                                                    var o = h.MergeMrg.grids[e], n = 0; n < o.length; n++
                                                ) {
                                                    var i = o[n];
                                                    (i.canOperate = 1 == e && 4 == n),
                                                    i.canOperate && null == this.to && this.setTo(i);
                                                }
                                            }
                                            this.setTarget(h.MergeMrg.grids[4][4].view);
                                        }
                                        this.to &&
                                            null != this.to.data &&
                                            ((this._delay = 1), this.next());
                                    }
                                }),
                                (e.prototype.G13 = function(t) {
                                    (this._delay -= t), this._delay <= 0 && this.next();
                                }),
                                (e.prototype.G14 = function() {
                                    if (this.target == this) {
                                        var t = c.UIMrg.getPanel(s.BattlePanel);
                                        if (t && t.isShow) {
                                            var e = t.getRefreshButton();
                                            (e.interactable = !0),
                                            (e.node.getChildByName('lock').active = !1),
                                            u.default.setGray(e.node, !1),
                                                ((e = t.getBattleButton()).interactable = !0),
                                                (e.node.getChildByName('lock').active = !1),
                                                u.default.setGray(e.node, !1),
                                                (this.location.x = 0),
                                                (this.location.y =
                                                    949 - cc.Canvas.instance.node.height / 2),
                                                this.setTarget(e.node);
                                        }
                                    }
                                }),
                                (e.prototype.next = function() {
                                    this.guide && f.default.guide(this.guide.step),
                                        t.prototype.next.call(this);
                                }),
                                (e.prototype.onDestroy = function() {
                                    var e = c.UIMrg.getPanel(s.BattlePanel);
                                    if (e && e.isShow) {
                                        var o = u.default.getComponent(
                                            cc.Button,
                                            e.view,
                                            'merge/desc/btnClose'
                                        );
                                        (o.interactable = !0),
                                        u.default.setGray(o.node, !1),
                                            (u.default.findNode('battleGuideMask', e.view).active = !1),
                                            (u.default.findNode('mergeGuideMask', e.view).active = !1);
                                        for (var n = 0; n < h.MergeMrg.grids.length; n++) {
                                            for (
                                                var i = h.MergeMrg.grids[n], r = 0; r < i.length; r++
                                            ) {
                                                i[r].canOperate = !0;
                                            }
                                        }
                                    }
                                    t.prototype.onDestroy.call(this);
                                }),
                                r([g('Guide1')], e)
                            );
                        })(a.AbsGuideAction));
                (o.Guide1 = _), console.log("end");
            module.exports =  e.exports;